package com.zd.service;

import com.zd.entity.Comments;

import java.util.List;


public interface CommentsService {
    /**
     *查询指定新闻的评论
     * @param nid
     * @return
     */
    List<Comments> queryAllCommentsByNid(Long nid);

    /**
     * 发表评论
     * @param comments
     * @return
     */
    Comments publishcomments(Comments comments);
}
